package com.openingedu.mba.screen.fragment;

import android.content.Context;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import com.actionbarsherlock.app.ActionBar;
import com.actionbarsherlock.app.SherlockFragment;
import com.openingedu.mba.R;
import com.openingedu.mba.TabListener;
import com.openingedu.mba.R.layout;
import com.openingedu.mba.R.string;

/**
 * 
 * 试题库
 * 
 * @author unidw
 */
public class FragmentStore extends SherlockFragment {

	private Context mContext;

//	private ActionBar.Tab localTab;
//	private ActionBar.Tab serverTab;
//	
//	private FragmentStoreLocal storeLocal = new FragmentStoreLocal();
//	private FragmentStoreServer storeServer = new FragmentStoreServer();
	
	@Override
	public View onCreateView(LayoutInflater inflater, ViewGroup container,
			Bundle savedInstanceState) {
		View view = inflater.inflate(R.layout.ft_store, container, false);
		mContext = view.getContext();
		return view;
	}

//	private void initActionBar() {
//		ActionBar actionBar = getSherlockActivity().getSupportActionBar();
//		actionBar.setNavigationMode(ActionBar.NAVIGATION_MODE_TABS);
//		int tabCount = actionBar.getTabCount();
//		if (tabCount < 2) {
//			localTab = actionBar.newTab();
//			localTab.setText(getResources().getString(R.string.tab_local_store));
//			localTab.setTag("localTab");
//			localTab.setTabListener(new TabListener(storeLocal));
//			actionBar.addTab(localTab);
//			
//			serverTab = actionBar.newTab();
//			serverTab.setText(getResources().getString(R.string.tab_server_store));
//			serverTab.setTag("serverTab");
//			serverTab.setTabListener(new TabListener(storeServer));
//			actionBar.addTab(serverTab);
//			
//		}
//	}
}
